package com.ngc.mall.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ngc.mall.common.configure.mybatisPlus.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *
 * 积分商品
 * @author: chenxiaolin
 * @date 2023/9/13 16:09
**/
@Data
@Builder
@TableName("integral_spu")
@AllArgsConstructor
@NoArgsConstructor
public class IntegralSpuDomain extends BaseDomain {
    private String name;
    private String img;

    private String note;

    private Boolean isEnabled;

    private Integer sort;

    /**
     * 积分商品类型，（当前只支持优惠券,1)
     */
    private Integer type;

    private Long couponId;

    /**
     * 消耗积分数
     */
    private Integer integral;

    @TableLogic
    private Boolean deleted;
}
